import request from '@/utils/request'

export function insert (data) {
    return request({
        url: '/api/server/approvalSet/insert',
        method: 'post',
        data
    })
}

export function update (data) {
    return request({
        url: '/api/server/approvalSet/update',
        method: 'post',
        data
    })
}

export function queryByPage (data) {
    return request({
        url: '/api/server/approvalSet/queryByPage',
        method: 'post',
        data
    })
}

export function deleteById (data) {
    return request({
        url: '/api/server/approvalSet/deleteById',
        method: 'get',
        params:data
    })
}

export function addColumn (data) {
    return request({
        url: '/api/server/approvalColumn/insert',
        method: 'post',
        data
    })
}

export function updateColumn (data) {
    return request({
        url: '/api/server/approvalColumn/update',
        method: 'post',
        data
    })
}

export function queryColumn (data) {
    return request({
        url: '/api/server/approvalColumn/queryByPage',
        method: 'post',
        data
    })
}

export function delColumn (data) {
    return request({
        url: '/api/server/approvalColumn/deleteById',
        method: 'get',
        params:data
    })
}

// 申请人

export function addPublisher (data) {
    return request({
        url: '/api/server/publisherInfo/insert',
        method: 'post',
        data
    })
}

export function queryPublisher (data) {
    return request({
        url: '/api/server/publisherInfo/queryByPage',
        method: 'post',
        data
    })
}

export function delPublisher (data) {
    return request({
        url: '/api/server/publisherInfo/deleteById',
        method: 'get',
        params:data
    })
}

// 审批
export function addApprovalPro (data) {
    return request({
        url: '/api/server/approvalProInfo/insert',
        method: 'post',
        data
    })
}

export function queryApprovalPro (data) {
    return request({
        url: '/api/server/approvalProInfo/queryByPage',
        method: 'post',
        data
    })
}

export function delApprovalPro (data) {
    return request({
        url: '/api/server/approvalProInfo/deleteById',
        method: 'get',
        params:data
    })
}